package com.nft.service.school.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nft.service.school.entity.SchoolActivityEntity;
import com.nft.service.school.resp.SchoolActivityResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
@DS("master")
public interface SchoolActivityMapper extends BaseMapper<SchoolActivityEntity> {
    @Select("select introduce,cast(detail AS CHAR) AS detail from school_activity where id=#{id}")
    public SchoolActivityResp getDetailInfo(@Param("id")Long id);
}
